package com.init.bootframe.system.vo;

import com.init.bootframe.util.TmompUser;
import java.io.Serializable;

/**
 * 公共VO对象
 * 
 * @author Administrator
 *
 */
public class CommonVO implements Serializable {

	private static final long serialVersionUID = 1L;
	private int limit;// 分页数大小
	private int offset;// 分页页码
	private String order;// 排序
	private String createDate; // 创建时间
	private String createBy; // 创建人Id
	private String lastUpdateDate; // 最后更新时间
	private String lastUpdateBy; // 最后更新人Id
	private String createByName; // 创建人名称
	private String lastUpdateByName; // 最后更新人名称

	private String extendField1;// 扩展字段
	private String extendField2;// 扩展字段
	private String extendField3;// 扩展字段
	private String extendField4;// 扩展字段

	private String rownum;// 数据行

	private String userType;// 用户类型，0系统用户，1注册用户，2游客用户
	private String appId;// 应用appId
	private String secret;// 应用秘钥

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getCreateBy() {
		if (null == this.createBy || "".equals(this.createBy)) {
			this.createBy = TmompUser.getCurrentUserId();
		}
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public String getLastUpdateDate() {
		return lastUpdateDate;
	}

	public void setLastUpdateDate(String lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	public String getLastUpdateBy() {
		if (null == this.lastUpdateBy || "".equals(this.lastUpdateBy)) {
			this.lastUpdateBy = TmompUser.getCurrentUserId();
		}
		return this.lastUpdateBy;
	}

	public void setLastUpdateBy(String lastUpdateBy) {
		this.lastUpdateBy = lastUpdateBy;
	}

	public String getCreateByName() {
		return createByName;
	}

	public void setCreateByName(String createByName) {
		this.createByName = createByName;
	}

	public String getLastUpdateByName() {
		return lastUpdateByName;
	}

	public void setLastUpdateByName(String lastUpdateByName) {
		this.lastUpdateByName = lastUpdateByName;
	}

	public String getExtendField1() {
		return extendField1;
	}

	public void setExtendField1(String extendField1) {
		this.extendField1 = extendField1;
	}

	public String getExtendField2() {
		return extendField2;
	}

	public void setExtendField2(String extendField2) {
		this.extendField2 = extendField2;
	}

	public String getExtendField3() {
		return extendField3;
	}

	public void setExtendField3(String extendField3) {
		this.extendField3 = extendField3;
	}

	public String getExtendField4() {
		return extendField4;
	}

	public void setExtendField4(String extendField4) {
		this.extendField4 = extendField4;
	}

	public String getRownum() {
		return rownum;
	}

	public void setRownum(String rownum) {
		this.rownum = rownum;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

}
